package hu.mapro.gwtui.gxt.client.data;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.sencha.gxt.data.shared.loader.PagingLoadConfig;

public interface PageLoadActions<D, R extends RequestContext> {

	abstract public R createRequestContext();

	abstract public Request<Long> createCountRequest(R requestContext);

	abstract public Request<List<D>> createListRequest(R requestContext,
			PagingLoadConfig loadConfig);

}